package com.leyou.search.service;

import com.leyou.search.entity.Goods;
import com.leyou.search.vo.GoodsRequestBodyVo;
import com.leyou.starter.elastic.entity.PageInfo;
import reactor.core.publisher.Mono;

import java.util.List;
import java.util.Map;

public interface SearchService {

    //自动补全的自动名
    Mono<List<String>> querySuggestion(String key);

    //分页搜索商品数据
    Mono<PageInfo<Goods>> queryPageInfoByGoods(GoodsRequestBodyVo goodsRequestBodyVo);

    //根据商品数据，构建页面搜索条件
    Mono<Map<String, List<?>>> queryAggregationByGoods(GoodsRequestBodyVo goodsRequestBodyVo);
}
